package cn.edu.cug.cs.gtl.renders.openinventor.nodes;

import cn.edu.cug.cs.gtl.apis.render.nodes.Material;
import com.openinventor.inventor.nodes.SoMaterial;

public class MaterialImpl extends NodeImpl implements Material {
    public MaterialImpl() {
        super();
        this.nativeObject = new SoMaterial();
    }
    public MaterialImpl(SoMaterial soMaterial){
        super();
        this.nativeObject = soMaterial;
    }
    @Override
    public boolean attach(Object nativeObject) {
        if(nativeObject instanceof SoMaterial)
            this.nativeObject = (SoMaterial)nativeObject;
        else
            return false;

        return true;
    }
}
